package ai.plantdata.Structural.mode.BridgePattern.test;

import ai.plantdata.Structural.mode.BridgePattern.abstracts.Circle;
import ai.plantdata.Structural.mode.BridgePattern.abstracts.Shape;
import ai.plantdata.Structural.mode.BridgePattern.interfaces.impl.GreenCircle;
import ai.plantdata.Structural.mode.BridgePattern.interfaces.impl.RedCircle;

/**
 * @Author: WangHui
 * @Date: 2020/12/19 13:52
 * @Description:
 */
public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100, 100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}

